﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZDMHelper
{
    /// <summary>
    /// 行政区划数据
    /// </summary>
    class RegionData
    {
        #region Variable
        private string symbol;
        private double mileage;
        private string frontRegion;
        private string backRegion;
        #endregion

        #region Construction
        public RegionData()
        {
            this.symbol = "";
            this.mileage = 0.0;
            this.frontRegion = "";
            this.backRegion = "";
        }

        /// <summary>
        /// 行政区划数据
        /// </summary>
        /// <param name="symbol">冠号</param>
        /// <param name="mileage">里程</param>
        /// <param name="frontRegion">前一行政区划名</param>
        /// <param name="backRegion">后一行政区划名</param>
        public RegionData(string symbol, double mileage, string frontRegion, string backRegion)
        {
            this.symbol = symbol;
            this.mileage = mileage;
            this.frontRegion = frontRegion;
            this.backRegion = backRegion;
        }
        #endregion

        #region Properties
        public string Symbol
        {
            set
            {
                this.symbol = value;
            }
            get
            {
                return this.symbol;
            }
        }

        public double Mileage
        {
            set
            {
                this.mileage = value;
            }
            get
            {
                return this.mileage;
            }
        }

        public string FrontRegion
        {
            set
            {
                this.frontRegion = value;
            }
            get
            {
                return this.frontRegion;
            }
        }

        public string BackRegion
        {
            set
            {
                this.backRegion = value;
            }
            get
            {
                return this.backRegion;
            }
        }
        #endregion
    }
}
